{include file="common/_meta" /}

<title>基本设置</title>
</head>

<body>
    <nav class="breadcrumb">
        <i class="Hui-iconfont">&#xe67f;</i> 首页
        <span class="c-gray en">&gt;</span>
        系统管理
        <span class="c-gray en">&gt;</span>
        提现设置
        <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);"
            title="刷新">
            <i class="Hui-iconfont">&#xe68f;</i>
        </a>
    </nav>
    <div class="page-container">
        <form class="form form-horizontal" id="form-article-add">
            <div id="tab-system" class="HuiTab">
                <div class="tabBar cl">
                    <span>提现设置</span>
                </div>
                <div class="tabCon">
                    <!-- 推荐奖励 -->
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">
                            <span class="c-red">*</span>
                            单笔限额(￥)</label>
                        <div class="formControls col-xs-2 col-sm-3">
                            <input type="text" name="zt_rate" id="website-title" placeholder="" value="{:config('zt_rate')}" class="input-text">
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">
                            <span class="c-red">*</span>
                            每天提现次数：</label>
                        <div class="formControls col-xs-2 col-sm-3">
                            <input type="text" name="dl_rate" id="website-title" placeholder="" value="{:config('dl_rate')}" class="input-text">
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">
                            <span class="c-red">*</span>
                            提现基数：</label>
                        <div class="formControls col-xs-2 col-sm-3">
                            <input type="text" name="to_shop" id="website-title" placeholder="" value="{:config('to_shop')}" class="input-text">
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">
                            <span class="c-red">*</span>
                            提现手续费(%)：</label>
                        <div class="formControls col-xs-2 col-sm-3">
                            <input type="text" name="sell_base" id="website-title" placeholder="" value="{:config('sell_base')}" class="input-text">
                        </div>
                    </div>
                <div class="row cl">
                    <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
                        <button onClick="return saveConfig();" class="btn btn-primary radius" type="submit">
                            <i class="Hui-iconfont">&#xe632;</i> 保存</button>
                        <button class="btn btn-default radius rst hidden" type="reset">&nbsp;&nbsp;重置&nbsp;&nbsp;</button>
                    </div>
                </div>
        </form>
        </div>

        {include file="common/_footer" /}

        <!--请在下方写此页面业务相关的脚本-->
        <script type="text/javascript">
           
            $(function () {
                $('.skin-minimal input').iCheck({
                    checkboxClass: 'icheckbox-blue',
                    radioClass: 'iradio-blue',
                    increaseArea: '20%'
                });
                $("#tab-system").Huitab({
                    index: 0
                });
            });
            // /setting/saveinfo
            function saveConfig() {
                $.post("{:url('Setting/award')}", $('.form').serialize()).success(function (data) {
                    layer.msg(data.msg);
                    if (!data.code) {
                        $('.rst').click();
                    }
                });
                return false;
            }
        </script>
        <!--/请在上方写此页面业务相关的脚本-->
</body>

</html>